// 统一管理接口
import requests from './axiox'
// console.log(requests,'//////')
// // import axios from 'axios'
// // const requests = axios.create({
// //   baseURL: '/adminApi',
// //   timeout: 5000
// // })
// 发送视频到服务器
export const uploadfile = (file) => {
  return requests({
    url: '/file/uploadVideo',
    method: 'post',
    data: file,
    'content-type': 'application/json;charset=UTF-8'
  })
}

// 获取服务器视频数据
export const getvideodata = () => {
  return requests({
    url: '/file/queryVideoPath',
    method: 'POST'
  })
}
// 删除元素方法
// export const deletevideo = () => {
//   return requests({
//     url: '/file/uploadVideo',
//     method: 'DELETE'
//   })
// }
// 获取图片文本信息 http://47.99.69.81:8082/adminApi/file/wordParsing
export const getimgtext = (file) => {
  return requests({
    url: '/file/wordParsing',
    method: 'POST',
    data: file,
    'content-type': 'application/json;charset=UTF-8'
  })
}
